//
//  Product_add_four_resultError_vc.m
//  ainkjj
//
//  Created by zhiyiLiu on 2020/3/9.
//  Copyright © 2020 zhiyiLiu. All rights reserved.
//

#import "Product_add_four_resultError_vc.h"
#import "Product_add_two_wifi_vc.h"
#import "Product_add_two_ble_vc.h"


@interface Product_add_four_resultError_vc ()< UINavigationControllerBackButtonHandlerProtocol>

@end

@implementation Product_add_four_resultError_vc

#pragma mark - UINavigationControllerBackButtonHandlerProtocol

- (BOOL)shouldPopViewControllerByBackButtonOrPopGesture:(BOOL)byPopGesture {
    [self retry_action:nil];
    return NO;
}


- (IBAction)retry_action:(id)sender {
    for (UIViewController *vc in self.navigationController.childViewControllers) {
        if ([vc isKindOfClass:Product_add_two_wifi_vc.class] || [vc isKindOfClass:Product_add_two_ble_vc.class]) {
            [self.navigationController popToViewController:vc animated:YES];

        }
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
